<?php
include_once("lib/common.php");
include_once("lib/cDB.php");
include_once("lib/cCPDAO.php");

$db = new cDB;
$c = new cCPDAO($db->getCon());

$arrList = $c->getSaleCntList();
fb($arrList);
$arrSiteList = $c->getCouponCntList(5);

$s = getSmarty();
$s->assign(arrList,$arrList);
$s->assign(arrSiteList,$arrSiteList);
$s->display(G_FRONT_VERSION.'index.htm');
?>